package cn.htu.edu.controller;


import cn.htu.edu.common.ResponseModel;
import cn.htu.edu.payload.RAge;
import cn.htu.edu.service.IRnameService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dakai
 * @since 2024-01-11
 */
@RestController
@RequestMapping("/rname")
public class RnameController {

    @Resource
    private IRnameService iRnameService;

    @ApiOperation("新增姓名")
    @GetMapping("/addName")
    public ResponseModel addName(RAge request) {
        return iRnameService.addName(request);
    }
}
